public class Node implements Position{

	private Object element;
	private Node next;

	public Node(Object el, Node nx){
		setElement(el);
		setNext(nx);
	}

	public void setElement(Object el){
		element = el;
	}

	public void setNext(Node nx){
     	next = nx;
    }

    public Object element(){
    	return element;
    }

    public Node next(){
    	return next;
    }

    public String toString(){
    	return "<Node(" + element + ")>";
    }
}
